<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cityMasterList-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">全国区县名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">父类的区划编号：</label>
				<div class="col-sm-8">
					<input id="parentId" name="parentId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">0为国家1为省份2为市级3为区县级：</label>
				<div class="col-sm-8">
					<input id="levelType" name="levelType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">区号（由国家编写）：</label>
				<div class="col-sm-8">
					<input id="areaCode" name="areaCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">省市区聚合  省市区：</label>
				<div class="col-sm-8">
					<input id="mergerName" name="mergerName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">所属用户：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">初始价格：</label>
				<div class="col-sm-8">
					<input id="initPrice" name="initPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">初次交易价格：</label>
				<div class="col-sm-8">
					<input id="firstPrice" name="firstPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最后交易价格：</label>
				<div class="col-sm-8">
					<input id="lastPrice" name="lastPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第一次交易价格：</label>
				<div class="col-sm-8">
					<input id="firstTransactionTime" name="firstTransactionTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最后交易时间：</label>
				<div class="col-sm-8">
					<input id="lastTransactionTime" name="lastTransactionTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">城市总收益：</label>
				<div class="col-sm-8">
					<input id="allIncome" name="allIncome" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最新购买价格：</label>
				<div class="col-sm-8">
					<input id="newBuyPrice" name="newBuyPrice" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="pname" name="pname" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：
NORMAL:正常，
NORANDCANTBUY:正常但不可购买
REPURCHASE:回购中,
FRLOCKING:审核完成后锁定状态等待用户处理：</label>
				<div class="col-sm-8">
					<input id="status" name="status" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">省所处阶段
初始阶段：1
第二阶段：2
第三阶段：3：</label>
				<div class="col-sm-8">
					<input id="stage" name="stage" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "city/cityMasterList"
		$("#form-cityMasterList-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/add", $('#form-cityMasterList-add').serialize());
			}
		});
	</script>
</body>
</html>
